package com.ea.eadp.nexus.test.pageDefinition.console3;

import org.openqa.selenium.WebDriver;

public class WelcomePage extends ConsoleBasePage {
    public final static String acceptCheckBox = "label-readAccept";

    public WelcomePage(WebDriver driver) {
        super(driver, WelcomePage.class, acceptCheckBox);
    }

    public void navigate(String uri) {
        driver.switchTo().window(operationWindowHandle);
        log.info(uri);
        driver.navigate().to(uri);
    }

    public void acceptTOS() {
        log.info("Select Accept TOS CheckBox");
        selectCheckBox(acceptCheckBox);
        sendControllerKey('A');
    }
}
